package research.ui.editors.tableeditors.viscosity;

import org.eclipse.jface.viewers.Viewer;

import research.domain.ViscosityValue;
import research.ui.editors.tableeditors.EntitySorter;

public class ViscositySorter extends EntitySorter {

	@Override
	public int compare(Viewer viewer, Object o1, Object o2) {
		ViscosityValue for1 = (ViscosityValue) o1;
		ViscosityValue for2 = (ViscosityValue) o2;

		return for1.getNumber() - for2.getNumber();
	}
	
}
